package com.xfdmao.gate.controller;

import com.xfdmao.gate.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by fier on 2017/11/26.
 */
@RestController
@RequestMapping(value = "userFeign")
public class UserFeignController {

    @Autowired
    private UserFeign userFeign;

    @RequestMapping(value = "/")
    public String getHome(){
        return userFeign.getHome();
    }

    @RequestMapping(value = "/hi")
    public String getHi(){
        return userFeign.sayHi("gate");
    }


}
